from django import forms
from django.utils.translation import ugettext_lazy as _

#Form for creating a new thread. Used by the new_thread view
class ThreadForm(forms.Form):
    title = forms.CharField(
                label=_("Thread title"), 
                widget=forms.Textarea(attrs={'rows':1, 'cols':60}))
    body = forms.CharField(
                label=_("ForumPost text"), 
                widget=forms.Textarea(attrs={'rows':4, 'cols':60}))

#Form for creating a new forum post. Used by the new_forumpost view                           
class ForumPostForm(forms.Form):
    body = forms.CharField(
                label=_("ForumPost text"), 
                widget=forms.Textarea(attrs={'rows':4, 'cols':60}))